﻿using System.Collections.Generic;
using PerceptiveMCAPI.Types;
//
namespace PerceptiveMCAPI
{
   internal static partial class ValidateInput
   {
      // campaignCreate
      internal static List<Api_ValidatorMessage> Validate( campaignCreateInput input )
      {
         List<Api_ValidatorMessage> messages = ValidateBaseParameters( input as Api_BaseInput );
         Api_ValidatorMessage val;
         //-----------------------
         // apikey
         val = Validator.apikey_valid( input.parms.apikey );
         if ( val != null ) messages.Add( val );
         // campaign type
         val = campaignCreate_Validator.type_valid( input.parms.type );
         if ( val != null ) messages.Add( val );

         ///////////////////////// TEMP ////////////////////////
         val = new Api_ValidatorMessage();
         val.MessageLevel = EnumValues.MessageLevel.Warning;
         val.PropertyName = "--none--";
         val.MessageText = ( "Only very limited campaign validation is currently available." );
         messages.Add( val );
         ///////////////////////// TEMP ////////////////////////
         //--------------------
         return messages;
      }
   }
}
